Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add test should close the connection if no handshake is received #31

Merged
merged 2 commits into from
Sep 19, 2023
Merged

feat: add test should close the connection if no handshake is received #31

merged 2 commits into from
Sep 19, 2023

Conversation

Totodore
Copy link
Contributor

According to the socket.io protocol, a socket.io server should drop the engine.io connection if the client did not send any handshake before the connectTimeout parameter.

It also implies to set a connectTimeout parameter in the test server config that is greater than the pingInterval + pingTimeout to avoid other tests to fail.

Currently it is not tested in this test-suite and it would be nice to add it.

@darrachequesne darrachequesne merged commit 4f633dd into socketio:main Sep 19, 2023
@darrachequesne
Copy link
Member

Awesome, thanks! I've increased the value of connectTimeout, because it would make other tests fail.

Unrelated, but do you mind if I mention socketioxide here?

@Totodore
Copy link
Contributor Author

It would be really nice 😄, thanks a lot

@Totodore Totodore deleted the feat-connect-timeout-test branch September 19, 2023 15:28
@darrachequesne
Copy link
Member

@Totodore and voilà! https://socket.io/docs/v4/#server-implementations

Please ping me if you need anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants